package com.yuqingxin.redisCacheApi.service.impl;

import com.yuqingxin.redisCacheApi.dto.TestDto;
import com.yuqingxin.redisCacheApi.service.TestService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yuqingxin
 * */
@Service
public class TestServiceImpl implements TestService {
    @Override
    public Map<String, Object> test1(String a1, Integer a2, BigDecimal a3) {
        Map<String,Object> result = new HashMap<>();
        result.put("a1",a1);
        result.put("a2",a2);
        result.put("a3",a3);
        return result;
    }

    @Override
    public Map<String, Object> test2(TestDto dto) {
        Map<String,Object> result = new HashMap<>();
        result.put("TestDto",dto);
        return result;
    }
}
